package com.wjv.ribbon;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>Title: MyRule</p>
 * <p>Company:misspao </p>
 *
 * @author: wjv
 * @Date: Create in 11:21 2020/9/24
 * @Description:
 */
@Configuration
public class MyRules {

    @Bean
    public IRule myRule(){
        //定义为随机
        return new RandomRule();
    }
}
